package com.lmm.rpc.core.cluster;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.commons.pool2.impl.GenericObjectPool;

/**
 * @title: ServerObject
 * @Description: 维护节点和资源池之间的关系     为什么不直接用map，怕产生hash冲突
 * @Author Lmm
 * @Date: 2022/9/29 16:25
 * @Version 1.0
 */
@Data
@AllArgsConstructor
public class ServerObject<T> {
    private GenericObjectPool<T> genericObjectPool;

    //服务节点路由信息
    private RemoteServerInfo remoteServer;
}
